package interfaces.console.commands;

import interfaces.console.Console;
import main.InitGame;

import settings.GraphicSettings;

public class GraphicChangeCommand extends SettingsCommand {
	
	public GraphicChangeCommand(String commandName, GraphicSettings settings) {
		super(commandName, settings);
	}
	
	@Override
	public boolean execute(Console source, String[] args) {
		GraphicSettings oldGraphics = GraphicSettings.copySettings();
		if(!super.execute(source, args)) return false;
		InitGame.get().changeGraphicSettings(oldGraphics);
		return true;
	}
}